﻿CustomFunc_FileNameCheck(ParentDirPath,FileName,Ext:="")
{
	if Ext
		Point:="."
	File=%ParentDirPath%\%FileName%%Point%%Ext%
	IfExist, %File%
	{
		Loop
		{
			File=%ParentDirPath%\%FileName%_(%A_Index%)%Point%%Ext%
			If !FileExist( File )
			{
				break
			}
		}
	}
	Return File
}